const routes = [
  {
    path: '/',
    name: 'defaultPage',
    component: () => import('@/layout/default.vue'),
    redirect: '/index',
    children: [
      {
        path: '/index',
        name: 'index',
        component: () => import('@/page/index.vue'),
      },
      {
        path: 's/:name',
        name: 'goods',
        component: () => import('@/page/goodsList.vue'),
      },
      {
        path: '/changeCity',
        name: 'changeCity',
        component: () => import('@/page/changeCity.vue'),
      },
      {
        path: '/s:name',
        name: 'productDetail',
        component: () => import('@/page/detail.vue'),
      },
    ],
  },
  {
    path: '/blank',
    name: 'blankPage',
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import('@/page/login.vue'),
      },
      {
        path: 'register',
        name: 'register',
        component: () => import('@/page/register.vue'),
      },
    ],
    component: () => import('@/layout/blank.vue'),
  },
];
export default routes;
